package com.wxy.demo.interface_;

/**
 * <p>
 *
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2023/1/4 17:18
 */
public class C implements AInterface, BInterface {
    @Override
    public void hello() {
        System.out.println(123);
    }

    @Override
    public void say() {
        System.out.println("say");
    }

    @Override
    public void say(String name) {
        System.out.println("say:" + name);
    }

    public static void main(String[] args) {
        AInterface a = new C();
        BInterface b = new C();
        a.hello();
        b.hello();

        a.say();
        b.say("张三");
    }
}
